def number_transport(num):
    if num >= 0:
        return num
    else:
        num_str = str(abs(num))
        reversed_num_str = num_str[::-1]
        return -int(reversed_num_str)


a, b = map(int, input("请输入：").split())
result = number_transport(a) + number_transport(b)
print(result)
